﻿using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace SenFangKaoHe_MVC.Models.Entity
{
    ///<summary>
    ///
    ///</summary>
    [SugarTable("shijuan")]
    public partial class shijuan
    {
           public shijuan(){


           }
           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:False
           /// </summary>           
           [SugarColumn(IsPrimaryKey=true,IsIdentity=true)]
           public int Id {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public int? kaoheid {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string? xingming {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public int? tiliang {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string? shiti_ids {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string? cuoti_ids {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string? cuoti_das {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public int? fenzhi {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public int? chengji {get;set;}


        [SugarColumn(IsIgnore = true)]     //CodeFist数据库时不映射字段
        [Navigate(NavigateType.ManyToOne, nameof(kaoheid))]    //定义多对一关系，多个人员属于一个防火单位
        public kaohe? kaohe { get; set; }
    }
}
